import { checkNameForm } from "../../common/commonFormRuler_string";
const options: any = [];
// import request from "@/api/index";
// const options = await request.fetchChannelChannelTree();
export default {
  component: {//展示型组件信息，每个组件的信息各不相同
    componentName: 'parentColumn', // 组件名称
    settings: {// 对应的设置项， 可能不同组件设置也不尽相同。
      value: '',
      placeholder: '请选择',
      param: 'parentColumn',
      rule: {
        required: true,
        validator: checkNameForm,
        trigger: ["blur"],
        msg1: '上级栏目为空!',
        msg2: '上级栏目不能重复!',
        api: "fetchOssNameUnique",
        key: 'siteDomain',
        params: {}, //校验传参
      },
      label: "上级栏目:",
      beforeText: '',
      afterText: '',
      api: "fetchOssNameUnique",
      width: '',
      maxCount: 25,
      marginLeft: 32,
      marginTop: 0,
      options,
      type: 'textInput',
      associated: '',
      associatedValue: '',
    },
  }
}